﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tester.DL645
{
    /// <summary>
    /// 
    /// </summary>
    public class BufferManager
    {
        /// <summary>
        /// 
        /// </summary>
        public List<byte> mBuffer = new List<byte>();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="buffer"></param>
        public void Add(byte[] buffer)
        {
            mBuffer.AddRange(buffer);
        }
        /// <summary>
        /// 
        /// </summary>
        public int Lenght {  get { return mBuffer.Count; } }    

        /// <summary>
        /// 
        /// </summary>
        /// <param name="buffer"></param>
        public void Clear()
        {
            this.mBuffer.Clear();
        }
    }
}
